<%- include ../include/head %>
<div class="container page panel">
  <div class="page__hd">
    <h1 class="page__title">注册</h1>
    <p class="page__desc">欢迎注册活宝</p>
  </div>
<form action="/reg/index" role="form" method="post">
  <div class="weui-cells">
    <div class="weui-cell">
      <div class="weui-cell__bd">
        <input id="username" name="username" class="weui-input" type="text" placeholder="请输手机号">
      </div>
    </div>
    <div class="weui-cell">
      <div class="weui-cell__bd">
        <input id="userPass" name="password" class="weui-input" type="password" placeholder="请输入密码">
      </div>
    </div>
  </div>
  <label for="weuiAgree" class="weui-agree">
    <input id="weuiAgree" type="checkbox" class="weui-agree__checkbox">
    <span class="weui-agree__text">
        阅读并同意<a href="javascript:void(0);">《相关条款》</a>
    </span>
  </label>
  <div class="weui-btn-area">
    <button type="submit" class="weui-btn weui-btn_primary">立即注册</button>
  </div>
  <label class="warn"><%= errMsg %></label>
    <% if(locals.status=="success"){ %>
  <div class="form-btn">
    注册成功，请点击<a href='/' >登录</a>
  </div>
    <%} %>
</form>
</div>
<%- include ../include/foot %>